<template>
    <admin-view>
        <admin-section>
            <admin-card>
                <el-button type="text" @click="onAddStar">添加明星</el-button>

            </admin-card>
        </admin-section>
        <admin-section>
            <admin-card>
                <router-view></router-view>
            </admin-card>
        </admin-section>
    </admin-view>
</template>
<script type="ts">

    import {Vue, Component} from 'vue-property-decorator'
    import {AdminView,AdminCard,AdminLabel,AdminSection} from '../layout'

    @Component({
        name:"AdminStarsLayout",
        components: {
            AdminView,
            AdminCard,
            AdminLabel,
            AdminSection,
        },
    })
    export default class AdminStars extends Vue {

        onAddStar() {
            this.$router.push({
                path:'/star/editor/new'
            })
        }


        mounted() {
            console.log(this.$route.name)
        }
    }


</script>
